package cn.fastoo.common.sampleframe.dao;

import cn.fastoo.common.sampleframe.search.Search;
import org.springframework.data.domain.Page;

import java.util.List;

public interface FastDao<T> {
	public void update(T t);
	public void insert(T t);
	public void delete(T t);
	public void delete(Search search);
	public void delete(Long id);
	public List<T> find(Search search);
	public T findOne(Search search);
	public T findById(Long id);
	public Page<T> findPage(Search search);
	public Long count(Search search);
	public void batchInsert(List<T> t);
	public List<T> findPageWithoutCount(Search search);
}
